package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 帖子点赞
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-20 11:48:57
 */
@Data
@TableName("t_post_like")
@ApiModel(value = "PostLike对象", description = "帖子点赞")
public class PostLike implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private String id;

    @ApiModelProperty("被点赞的帖子id")
    @TableField("post_id")
    private String postId;

    @ApiModelProperty("点赞的用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("点赞的用户昵称")
    @TableField("user_nick_name")
    private String userNickName;

    @ApiModelProperty("点赞的用户头像")
    @TableField("user_avatar")
    private String userAvatar;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
